package com.repository;

import com.entity.WeiJianDispatchRecord;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

@Repository
public interface WeiJianDispatchRecordRepository extends JpaRepository<WeiJianDispatchRecord, Integer> {
    Page<WeiJianDispatchRecord> findByProjectNameContaining(String projectName, Pageable pageable);

    void deleteAllByProjectName(String projectName);
}